import request from '@/utils/request'

// 查询设备列表
export function listProduct(query) {
    return request({
        url: '/manage-api/device/product/page',
        method: 'get',
        params: query
    })
}

// 产品下拉
export function listProductSelect() {
    return request({
        url: '/manage-api/device/product/select',
        method: 'get',
    })
}

// 产品新增
export function addProduct(data) {
    return request({
        url: '/manage-api/device/product/create',
        method: 'post',
        data:data
    })
}

// 产品修改
export function updateProduct(data) {
    return request({
        url: '/manage-api/device/product/update',
        method: 'put',
        data:data
    })
}

// 产品详情
export function getProduct(id) {
    return request({
        url: '/manage-api/device/product/get?id='+id,
        method: 'get',
    })
}
